package com.nft.service.school.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("nd_teaching_tasks")
@ApiModel(value="BookEntity对象", description="图书列表信息")
public class BookEntity implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "图书信息标题")
    private String title;

    @ApiModelProperty(value = "图书信息内容")
    private String content;

    @ApiModelProperty(value = "年级")
    private String grade;

    @ApiModelProperty(value = "学科")
    private String subject;

    @ApiModelProperty(value = "分册")
    private String dispart;

    @ApiModelProperty(value = "解析关键字符串")
    private String jxkey;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
}
